﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MemoryIndexNet.Indexes
{
    public class ComparableKeyConstraint<TKey>
        where TKey: IComparable<TKey>
    {
        readonly TKey _border;
        readonly bool _include;

        #region Properties
        public TKey Border
        {
            get { return _border; }
        }

        public bool Include
        {
            get { return _include; }
        }
        #endregion

        public ComparableKeyConstraint(TKey border, bool include)
        {
            _border = border;
            _include = include;
        }
    }
}
